<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">
<div class="table-responsive">
    <table class="table table-bordered">
        <thead>
        <tr>
            <th class="text-center"><div class="table-first-id">ID</div></th>
            <th class="text-center" width="20%">资讯名称</th>
            <th class="text-center" width="30%">资讯简介</th>
            <th class="text-center" width="15%">资讯关键字</th>
            <th class="text-center" width="10%">创建时间</th>
            <th class="text-center" width="10%">资讯作者</th>
            <th class="text-center" width="10%">状态</th>
        </tr>
        </thead>
    </table>
    <div class="J_V_tabContent table-xScrollWrap">
        <table class="table table-bordered table-hover table-xs-content">
            <tbody id="tbodyArticle" >
            <tr class="jqgfirstrow" role="row">
                <th class="text-center"><div class="table-first-id">&nbsp;</div></th>
                <th class="text-center" width="20%">&nbsp;</th>
                <th class="text-center" width="30%">&nbsp;</th>
                <th class="text-center" width="15%">&nbsp;</th>
                <th class="text-center" width="10%">&nbsp;</th>
                <th class="text-center" width="10%">&nbsp;</th>
                <th class="text-center" width="10%">&nbsp;</th>
            </tr>
            <tr th:if="${#lists.isEmpty(dataMap['list'])}">
                <td colspan="7" class="text-center">
                    <div class="noDataTipsBox">
                        <p><span class="c-4e fs16">亲，还没有数据~~~</span></p>
                    </div>
                </td>
            </tr>
            <tr th:if="!${#lists.isEmpty(dataMap['list'])}" th:each="article:${dataMap['list']}" th:attr="data-id=${article['id']}">
                <td class="text-center">
                    <input th:type="${#strings.isEmpty(selectType)}?'radio':${selectType}" class="i-checks" name="articleId" th:title="${article['title']}" th:value="${article['id']}" th:text="${article['id']}">
                </td>
                <td class="text-center" th:text="${article['title']}"></td>
                <td class="text-center" th:text="${#strings.abbreviate(article['briefIntroduction'],90)}"></td>
                <td class="text-center" th:text="${article['title']}"></td>
                <td class="text-center">
                    <span calss="pie" th:if="${article['createTime']}!=null" th:text="${#strings.substring(article['createTime'],0,16)}"></span>
                    <span class="pie" th:if="${article['createTime']}==null">—</span>
                </td>
                <td class="text-center" th:text="${article['author']}"></td>
                <td class="text-center status">
                    <span class="label label-info" th:if="${article['status']}==0">正常</span>
                    <span class="label label-danger" th:if="${article['status']}==1">不显示</span>
                </td>
            </tr>
            </tbody>
        </table>
    </div>
    <!-- 分页，开始 -->
    <div data-th-replace="layout/adminPage"></div>
    <!-- 分页，结束 -->
</div>
